import core from 'gapi/core'

class projectApi extends core{
	/**
	 * 在无网条件下通知客户端从本地拉项目列表数据
	 * @param: {String status}: tab flag (1 : 进行中; 2 已结束)
	 * @param: {JSON callBack}: return search list data
	 */
	getLocalListData (status,callBack){
		this.sendData({
			method: 'getLocalListData',
      param: {
				status: status
			},
			callBack: callBack
		});
	}
	/**
	 * 在无网条件下通知客户端从本地拉项目成员列表数据
	 * @param: {JSON callBack}: return search list data
	 */
	getLocalMemListData (callBack){
		this.sendData({
			method: 'getLocalMemListData',
			callBack: callBack
		});
	}


}

export default new projectApi({
	name: 'projectApi',
	author: 'lvpeng@doumi.com',
	version: '2.0',
	jsbc: jsBridgeClient,
	nativeCls: 'projectApi'
});
